package com.zj.mapping;

import com.zj.utils.Configuration;

import java.util.List;

public class StaticSqlSource implements SqlSource{
    private String sql;
    private Configuration configuration;
    private List<Object> params;

    public StaticSqlSource(Configuration configuration, String sql,List<Object> params) {
        this.sql = sql;
        this.configuration = configuration;
        this.params=params;
    }

    public BoundSql getBoundSql(Object parameterObject) {
        return new BoundSql(configuration, sql, params,parameterObject);
    }

}
